package com.swpu.service_step.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.swpu.service_step.entity.StepTarget;
import com.swpu.service_step.mapper.StepTargetMapper;
import com.swpu.service_step.service.StepTargetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chaichai
 * @since 2024-03-05
 */
@Service
public class StepTargetServiceImpl extends ServiceImpl<StepTargetMapper, StepTarget> implements StepTargetService {

    @Override
    public List<StepTarget> getStepTarget() {
        LambdaQueryWrapper<StepTarget> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.orderByAsc(StepTarget::getNumber);
        List<StepTarget> stepTargetList = this.list(queryWrapper);
        return stepTargetList;
    }
}
